hexo github 创建个人博客

前几天用jekyll,各种不爽。

前同事推荐下,果断换hexo

部分github page 的设置流程,在此略过,见上一篇博客。

安装hexo环境

见[node.js官网]:http://nodejs.org/

安装Git

见[git官网]:http://git-scm.com/    

正式安装hexo

mac用户,直接执行

sudo npm install hexo -g

创建web项目

hexo init file

file至你要创建的项目地址

启动服务

进入项目地址,执行

hexo server

执行完毕后,访问:localhost:4000/ 即可

安装npm

sudo npm install

安装模版nut

模板地址github

1:下载模板至theme文件夹
2:yml配置theme: nut
3:执行sudo npm install lodash --save
4:执行sudo npm install marked --save

生成静态文件

1:hexo generate
2:hexo deploy

ok 然后把这个写文件上传至kingundertree.github.io命名的repositories,设置github page 细节自己处理。

然后,访问http://kingundertree.github.io/

Ok!